<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Materias.aspx.cs" Inherits="Materias_MateriasABM" %>

<%@ Register Src="../../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">
    &nbsp;&nbsp;
    <br />
    <br />
    <br />
   <fieldset><Table><tr style="display:none;"><td class="input-caption">IdMateria</td><td><asp:TextBox ID="txtIdMateria" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">
    Materia</td><td><asp:TextBox ID="txtMateriaDesc" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">TipoMateria</td><td>
    <uc1:CboGeneric ID="CboTipoMateria" runat="server" NameDescript="Descripcion" NameId="IdTipoMateria" tabla="TipoMateria" TipoOrigen="Tabla" />
</td></tr>
<tr><td class="input-caption">Orden</td><td>
    <asp:DropDownList ID="cboOrden" runat="server">
     </asp:DropDownList></td></tr>
<tr><td class="input-caption">Idioma</td><td>
    <uc1:CboGeneric ID="CboTipoIdioma" runat="server" NameDescript="Detalle" NameId="IdIdioma" tabla="TipoIdioma" TipoOrigen="Tabla" />
</td></tr>
<tr><td class="input-caption">
    Tipo Panilla</td><td>
    <uc1:CboGeneric ID="CboTipoPlanilla" runat="server" NameDescript="Detalle" NameId="idTipoPlanilla" SourceData="TipoPlanilla" TipoOrigen="Tabla" />
</td></tr>
<tr><td class="input-caption">
    Materia Boletin</td><td><asp:TextBox ID="txtMateriaBoletin" runat="server" cssClass="input-text"></asp:TextBox></td></tr>

<tr><td colspan='2' style="height: 17px"></td></tr><tr><td colspan='2' class='barButtons'>
<asp:Button ID='cmdAccion' runat='server' Text='Aceptar'  CssClass='input-button'  OnClick="cmdAccion_Click" />
<asp:Button ID='cmdCancelar' runat='server' CssClass='input-button' Text='Cancelar' /></td></tr>
</Table>
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar."
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        OnRowDeleting="GridView1_RowDeleting" 
        OnPageIndexChanged="GridView1_PageIndexChanged"
        OnPageIndexChanging="GridView1_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="IdMateria" HeaderText="IdMateria" ReadOnly="True" SortExpression="IdMateria" Visible="False" />
            <asp:BoundField DataField="Materia" HeaderText="Materia" />
            <asp:BoundField DataField="Descripcion" HeaderText="Tipo" />
            <asp:BoundField DataField="orden" HeaderText="Orden" />
            <asp:BoundField DataField="Idioma" HeaderText="Idioma" />
            <asp:BoundField DataField="Planilla" HeaderText="Planilla" />
            
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                            ImageUrl="~/Images/b_edit.gif" Text="Ver" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/Images/delete.gif" Text="Delete" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
   </fieldset>
    &nbsp;<br />
    <br />
    &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
</asp:Content>